using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace NCP.Model
{
    [Serializable]
    [SugarTable("GroupPurchase")]
    public partial class GroupPurchase : BaseModel2
    {

        /// <summary>
        /// 编码 序列Seq_GroupPurchase_Code
        /// </summary>
        [SugarColumn(ColumnName = "Code", IsPrimaryKey = true)]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 年份
        /// </summary>
        [SugarColumn(ColumnName = "Year")]
        public int Year { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [SugarColumn(ColumnName = "BeginDate")]
        public DateTime BeginDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [SugarColumn(ColumnName = "EndDate")]
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [SugarColumn(ColumnName = "OperCode")]
        public string OperCode { get; set; }

        private string m_oper;
        [SugarColumn(IsIgnore = true)]
        public string Oper { get { return m_oper ?? OperCode; } set { m_oper = value; } }
        /// <summary>
        /// 操作时间
        /// </summary>
        [SugarColumn(ColumnName = "OperDate")]
        public DateTime OperDate { get; set; }

        /// <summary>
        /// 是否启用，启用后不能将编辑 1启用
        /// </summary>
        [SugarColumn(ColumnName = "Enabled")]
        public string Enabled { get; set; } = "0";


    }
}